package com.pubinfo.passbook.api.controller.bill;

import com.pubinfo.passbook.common.entity.TPassbookPersionInfo;
import com.pubinfo.passbook.common.model.dto.financial.PassbookPersonInfoParam;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import com.pubinfo.passbook.common.model.vo.base.MyPage;
import com.pubinfo.passbook.common.service.master.TPassbookPersionInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("passbookPersonInfo")
@Api(tags = "个人票据")
public class PassbookPersonInfoController {

    @Autowired
    TPassbookPersionInfoService passbookPersionInfoService;
  
  @ApiOperation("查询个人票据列表")
  @PostMapping("list")
  public JsonResult<MyPage<TPassbookPersionInfo>> listPassbookPersonInfo(@RequestBody PassbookPersonInfoParam param) {
    return JsonResult.success(new MyPage(passbookPersionInfoService.listPassbookPersionInfo(param)));
  }
}
